class Student:
    f_title = "{:^8}{:^8}{:^6}{:^15}"
    f_date = "{:^10}{:^8}{:^9}{:^15}"
    def __init__(self,no,name,age,major):
        self.no = no
        self.name = name
        self.age = age
        self.major = major\

    @classmethod
    def show_title(cls):
        print(cls.f_title.format('学号','姓名','年龄','专业'))

    def __str__(self):
        return Student.f_date.format(self.no,self.name,self.age,self.major)

if __name__ == '__main__':
